package com.yanqu.road.entity.activity.luckydraw;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_n_lucky_draw")
public class LuckyDrawUserData extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID", select = true, update = true)
    private int activityId;
    @FieldTypeAnnotation(desc = "玩家ID", select = true, update = true)
    private long userId;
    @FieldTypeAnnotation(desc = "重置时间")
    private long resetTime;
    @FieldTypeAnnotation(desc = "剩余次数")
    private int canDrawTimes;
    @FieldTypeAnnotation(desc = "今日抽奖次数")
    private int dayDrawTimes;
    @FieldTypeAnnotation(desc = "瓦舍今日获胜次数")
    private int washeDayWinTimes;
    @FieldTypeAnnotation(desc = "当地零点时间")
    private long zeroTime;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        if (this.activityId != activityId) {
            this.activityId = activityId;
            setOp(DataStatus.Update);
        }
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        if (this.userId != userId) {
            this.userId = userId;
            setOp(DataStatus.Update);
        }
    }

    public long getResetTime() {
        return resetTime;
    }

    public void setResetTime(long resetTime) {
        if (this.resetTime != resetTime) {
            this.resetTime = resetTime;
            setOp(DataStatus.Update);
        }
    }

    public int getCanDrawTimes() {
        return canDrawTimes;
    }

    public void setCanDrawTimes(int canDrawTimes) {
        if (this.canDrawTimes != canDrawTimes) {
            this.canDrawTimes = canDrawTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getDayDrawTimes() {
        return dayDrawTimes;
    }

    public void setDayDrawTimes(int dayDrawTimes) {
        if (this.dayDrawTimes != dayDrawTimes) {
            this.dayDrawTimes = dayDrawTimes;
            setOp(DataStatus.Update);
        }
    }

    public int getWasheDayWinTimes() {
        return washeDayWinTimes;
    }

    public void setWasheDayWinTimes(int washeDayWinTimes) {
        if (this.washeDayWinTimes != washeDayWinTimes) {
            this.washeDayWinTimes = washeDayWinTimes;
            setOp(DataStatus.Update);
        }
    }

    public long getZeroTime() {
        return zeroTime;
    }

    public void setZeroTime(long zeroTime) {
        if (this.zeroTime != zeroTime) {
            this.zeroTime = zeroTime;
            setUpdateOption();
        }
    }
}
